package com.happe.foodeasy.manage.service.impl;

import com.happe.foodeasy.manage.dao.CommodityTypeMapper;
import com.happe.foodeasy.manage.commodity.entity.CommodityTypeEntity;
import com.happe.foodeasy.manage.service.CommodityTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommodityTypeServiceImpl implements CommodityTypeService {
    @Autowired
    private CommodityTypeMapper commodityTypeMapper;

    @Override
    public List<CommodityTypeEntity> selectAllCommodityType() {
        return commodityTypeMapper.selectAllCommodityType();
    }

    @Override
    public CommodityTypeEntity selectFirstValidType() {
        return commodityTypeMapper.selectFirstValidType();
    }
}
